package com.daocao.jy.api.model;

import com.daocao.jy.api.ResponseModel;
import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by xsooy-pc on 18-3-5.
 */

public class IndexModel extends ResponseModel {


    /**
     * datas : {"location":"东莞","price":{"#92":"6.77","#95":"7.33","#0":"6.37"},"instant":{"title":"即时充值","desc":"9.9折，即充即用","note":"让您用得放心","btn":"我要充值"},"term":{"title":"加油套餐","desc":"最低6折，按月到账","note":"让您用的放心","btn":"我要套餐"},"banner":[{"id":"1","icon":"images/shouyetu.jpg","url":""}],"services":[{"id":2,"title":"支持中石油/中石化","desc":"一卡充值，全国通用","icon":"images/4844f5296c0d34c1ad16b2920099a927.png","is_link":"0","url":""},{"id":3,"title":"多种加油套餐","desc":"每月至少省下2箱油","icon":"images/4844f5296c0d34c1ad16b2920099a927.png","is_link":"0","url":""}]}
     */

    public DatasBean datas;

    public static class DatasBean {
        /**
         * location : 东莞
         * price : {"#92":"6.77","#95":"7.33","#0":"6.37"}
         * instant : {"title":"即时充值","desc":"9.9折，即充即用","note":"让您用得放心","btn":"我要充值"}
         * term : {"title":"加油套餐","desc":"最低6折，按月到账","note":"让您用的放心","btn":"我要套餐"}
         * banner : [{"id":"1","icon":"images/shouyetu.jpg","url":""}]
         * services : [{"id":2,"title":"支持中石油/中石化","desc":"一卡充值，全国通用","icon":"images/4844f5296c0d34c1ad16b2920099a927.png","is_link":"0","url":""},{"id":3,"title":"多种加油套餐","desc":"每月至少省下2箱油","icon":"images/4844f5296c0d34c1ad16b2920099a927.png","is_link":"0","url":""}]
         */

        public String location;
        public PriceBean price;
        public InstantBean instant;
        public TermBean term;
        public List<BannerBean> index_banner;
        public List<BannerBean> banner;
        public List<ServicesBean> services;

        public static class PriceBean {
            @SerializedName("#92")
            public String _$92104; // FIXME check this code
            @SerializedName("#95")
            public String _$95147; // FIXME check this code
            @SerializedName("#0")
            public String _$0216; // FIXME check this code
        }

        public static class InstantBean {
            /**
             * title : 即时充值
             * desc : 9.9折，即充即用
             * note : 让您用得放心
             * btn : 我要充值
             */

            public String title;
            public String desc;
            public String note;
            public String btn;
        }

        public static class TermBean {
            /**
             * title : 加油套餐
             * desc : 最低6折，按月到账
             * note : 让您用的放心
             * btn : 我要套餐
             */

            public String title;
            public String desc;
            public String note;
            public String btn;
        }

        public static class BannerBean {
            /**
             * id : 1
             * icon : images/shouyetu.jpg
             * url :
             */

            public String id;
            public String icon;
            public String url;
            public String type;

            @Override
            public String toString() {
                return icon;
            }
        }

        public static class ServicesBean {
            /**
             * id : 2
             * title : 支持中石油/中石化
             * desc : 一卡充值，全国通用
             * icon : images/4844f5296c0d34c1ad16b2920099a927.png
             * is_link : 0
             * url :
             */

            public int id;
            public String title;
            public String desc;
            public String icon;
            public String is_link;
            public String url;
        }
    }
}
